package com.atguigu.spring5.service;

import com.atguigu.spring5.User;
import com.atguigu.spring5.dao.UserDao;
import com.atguigu.spring5.dao.UserDaoImpl;
import lombok.Setter;

@Setter
public class UserService {

    //创建UserDao的属性 并生成set方法
    private UserDao userDao;

    public void add(){
        System.out.println("执行了add方法");
        userDao.update();
    }



}
